﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="ImageCrop.aspx.cs" Inherits="Admin_ImageCrop" %>
<%@ Register Assembly="CS.Web.UI.CropImage" Namespace="CS.Web.UI" TagPrefix="cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlace" Runat="Server">
    <asp:HyperLink runat="server" ID="lnkBack" Text="Back"></asp:HyperLink>
    <div style="direction: ltr;">
        <asp:FileUpload runat="server" ID="uplImage" />
        <asp:Button runat="server" ID="btnUplImage" onclick="btnUplImage_Click" Text="Upload image" />
        <cs:CropImage ID="wci1" runat="server" Image="Image1" minX="420" Y="220" 
            W="400" H="200" MaxSize="400,200" MinSize="400,200"/>
        <asp:Image ID="Image1" runat="server" ImageUrl="images/koala.jpg" />
    </div>
    <br />
    <asp:Button ID="btnCrop" runat="server" Text="Crop" OnClick="btnCrop_Click" />
    <br />
    <br />
    <br />
</asp:Content>

